<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=\, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    手机号<input type="text"   id="phone"><br>
    旧密码<input type="text"   id="password"><br>
    新密码<input type="text"   id="Epassword"><br>
    确认密码<input type="text" id="ZCpassword"><br>
    <button id="queren">确认</button><br>
</body>
    <script src="./jquery-3.7.1.js"></script>
    <script>
        $("#queren").click(function(){
            $.ajax({
            url:"http://172.16.106.87:8080/updataPwd",
            type:"get",
            data:{
               phone:$("#phone").val(),
                oldpassword:$("#password").val(),
                newPassword:$("#Epassword").val(),
                confirmPassword:$("#ZCpassword").val()
            },
            success: function(sout){

                
                alert(sout.message)
            }
            
        })
        })
        
    </script>
</html>